﻿using System;
using System.Data.Entity.ModelConfiguration;
using NTQOnlineExam.Services.Resources;

namespace NTQOnlineExam.Services.Models
{
    public class PortfolioDTO
    {
        public Guid PortfolioId { get; set; }
        public int UserId { get; set; }
        public int TermId{ get; set; }
        public string TermName{ get; set; }
        public Guid OrderId{ get; set; }
        public DateTime OrderDate{ get; set; }
        public DateTime ExpiredDate { get; set; }
        public int? LatestScore { get; set; }
        public int? HighestScore { get; set; }

        public string ExpiredDateDisplay
        {
            get { return ExpiredDate.ToString(ServiceResource.ShortDateTimeFormat); }
        }

        public string OrderDateDisplay
        {
            get { return OrderDate.ToString(ServiceResource.ShortDateTimeFormat); }
        }
        public bool IsTermPublished { get; set; }
    }
}

